package cn.edu.cqut.test3;

public class People extends Object {
	int age, leg = 2, hand = 2;

	public void showPeopleMess() {
		System.out.printf("%d岁，%d只脚,%d只手\t", age, leg, hand);
	}

	public People(int age) {
		this(age ,2, 2);
		System.out.println("1");
	}
	public People(int age, int leg, int hand) {
		this.age = age;
		this.leg = leg;
		this.hand = hand;
		System.out.println("2");
	}
	@Override
    public String toString() {
    	String str = String.format("%d岁，%d只脚,%d只手", age, leg, hand);
        return str;
    }
}
